.PHONY:	clean fclean re
DIR=		.
OUT=		libget_next_line.a
CFILES=	gnl.c\
				gnl_callbacks.c
OBJ=		$(CFILES:.c=.o)
CFLAGS=	-W -Wall -pedantic -ansi -O2

all:	$(OBJ)
	@ar -r $(DIR)/$(OUT) $(OBJ)

%.o: %.c
	gcc -o $@ -c $< $(CFLAGS)

clean:
	rm -f $(OBJ)

fclean: clean
	rm -f $(DIR)/$(OUT)

re: fclean all
	
